public class Main {
    public static void main(String[] args) {

        TangSeng tangSeng = new TangSeng();

        SunWukong sunWukong = new SunWukong(tangSeng);
        ZhuBajie zhuBajie = new ZhuBajie(tangSeng);

        tangSeng.addDisciple(sunWukong);
        tangSeng.addDisciple(zhuBajie);

        sunWukong.sendMessage("有妖气");
        zhuBajie.sendMessage("快跑！");
    }
}